//
//  popTableviewCell.m
//  SoundPill
//
//  Created by 宋旭东 on 16/3/16.
//  Copyright © 2016年 宋旭东. All rights reserved.
//

#import "popTableviewCell.h"
#import "UIViewExt.h"
@implementation popTableviewCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createSubviews];
    }
    return self;
}
- (void)createSubviews
{
    self.content = [[UILabel alloc] initWithFrame:CGRectZero];
    [self.contentView addSubview:_content];
    self.selectImage = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"popSelect@3x"]];
    [self.contentView addSubview:_selectImage];
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    _selectImage.frame = CGRectMake(self.width - 20 - (self.height - 30), 15, (self.height - 30), (self.height - 30));
    
    _content.frame = CGRectMake(20, 10, self.frame.size.width - 40 - 10, self.frame.size.height - 20);
    _content.textAlignment = NSTextAlignmentLeft;
    _content.font = [UIFont boldSystemFontOfSize:18];
    
}
@end
